import random
import datetime
i = datetime.datetime.now()
a = 0
b = 0
file = open('除法%s-%s-%s.txt'%(i.year,i.month,i.day), 'a+')
while a < 100:
    x = random.randint(1,999)
    y = random.randint(10,99)
    if x > y and x%y==0 and y!=1:
        a = a + 1
        file.write('%s ÷ %s =' % (x, y))
        file.write('                 ')
        file.write('\n')
    else:
        pass